function notify(userMessage, logMessage) {
    $.jnotify(userMessage, 3000);
    if (logMessage != undefined) {
        log(logMessage);
    }
}

function warning(userMessage, logMessage) {
    $.jnotify(userMessage, "warning", 3000);
    if (logMessage != undefined) {
        log(logMessage);
    }
}

function error(userMessage, logMessage) {
    $.jnotify(userMessage, "error", 3000);
    if (logMessage != undefined) {
        log(logMessage);
    }
}

function stickyError(userMessage, logMessage) {
    $.jnotify(userMessage, "error", true);
    if (logMessage != undefined) {
        log(logMessage);
    }
}

function log(message) {
    console.log(message);
}

window.alert = stickyError;